﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.Model;
using yb.commerce.DAL;

namespace yb.commerce.BLL
{
    public class MemberLevelBusiness
    {
        public bool Add(MemberLevel memberLevel)
        {
            return new MemberLevelDAO().Add(memberLevel);
        }

        public bool Delete(int Id)
        {
            return new MemberLevelDAO().Delete(Id);
        }

        public bool Update(MemberLevel memberLevel)
        {
            return new MemberLevelDAO().Update(memberLevel);
        }

        public MemberLevel GetEntity(int Id)
        {
            return new MemberLevelDAO().GetEntity(Id);
        }

        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new MemberLevelDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
        public MemberLevel GetEntityByIntegral(int integral)
        {
            return new MemberLevelDAO().GetEntityByIntegral(integral);
        }
    }
}
